home *** CD-ROM | disk | FTP | other *** search
/ Digitální fotografie a video / Digitalni-fotografie-a-video-covermount.bin / Aplikace / DF / Kap_2 / Df_2_1.dxr / Internal_24_Najezd predek.ls < prev    next >
Encoding:
Text File  |  1998-05-19  |  1.3 KB  |  48 lines

  1. property Znacka
  2.  
  3. on getPropertyDescriptionList
  4.   set description to [:]
  5.   addProp(description, #Znacka, [#comment: "Znacka:", #format: #integer, #default: 1])
  6.   return description
  7. end
  8.  
  9. on getBehaviorDescription
  10.   return "N├íjezd a klik"
  11. end
  12.  
  13. on beginSprite me
  14.   set the visible of sprite the spriteNum of me to 1
  15.   set the visible of sprite (the spriteNum of me + 1) to 0
  16.   set the visible of sprite (the spriteNum of me + 2) to 0
  17. end
  18.  
  19. on endSprite me
  20.   set the visible of sprite the spriteNum of me to 1
  21.   set the visible of sprite (the spriteNum of me + 1) to 1
  22.   set the visible of sprite (the spriteNum of me + 2) to 1
  23. end
  24.  
  25. on mouseEnter me
  26.   puppetSound(1, "Najezd")
  27.   set the cursor of sprite the spriteNum of me to [member "ruka_1", member "ruka_2"]
  28.   set the visible of sprite (the spriteNum of me + 1) to 1
  29.   set the visible of sprite (the spriteNum of me + 2) to 1
  30. end
  31.  
  32. on mouseLeave me
  33.   set the cursor of sprite the spriteNum of me to -1
  34.   set the visible of sprite (the spriteNum of me + 1) to 0
  35.   set the visible of sprite (the spriteNum of me + 2) to 0
  36.   set the visible of sprite 13 to 0
  37. end
  38.  
  39. on mouseDown me
  40.   puppetSound(1, "Klik")
  41. end
  42.  
  43. on mouseUp me
  44.   set the visible of sprite (the spriteNum of me + 2) to 0
  45.   set the visible of sprite 13 to 1
  46.   go(Znacka)
  47. end
  48.